package com.example.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.product.entity.Goods;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface GoodsService extends IService<Goods> {
    //新增
    void add(Goods goods);

    //删除
    void deleteById(Integer id);

    //修改
    Goods selectById(Integer id);

    List<Goods> selectAll(Goods goods);

    PageInfo<Goods> selectPage(Goods goods, Integer pageNum, Integer pageSize);

}